import { formatTime } from '@/utils'
import i18n from '@/locales/index'

const { t } = i18n.global
export const columns = [
  { title: t('other.HangerNo'), dataIndex: 'hangerNo', key: 'hangerNo', align: 'center', width: 120 },
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120 },
  { title: t('hangManage.scheduledNo'), dataIndex: 'scheduleBillNo', key: 'scheduleBillNo', align: 'center', width: 120 },
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120 },
  { title: t('basicData.productType'), dataIndex: 'productType', key: 'productType', align: 'center', width: 120 },
  { title: t('hangManage.poNo'), dataIndex: 'poNo', key: 'poNo', align: 'center', width: 120 },
  { title: t('basicData.color'), dataIndex: 'color', key: 'color', align: 'center', width: 120 },
  { title: t('basicData.size'), dataIndex: 'size', key: 'size', align: 'center', width: 120 },
  { title: t('basicData.section'), dataIndex: 'section', key: 'section', align: 'center', width: 120 },
  { title: t('basicData.group'), dataIndex: 'group', key: 'group', align: 'center', width: 120 },
  { title: t('hangManage.road'), dataIndex: 'roadMap', key: 'roadMap', align: 'center', width: 120 },
  { title: t('other.markDone'), dataIndex: 'finishSign', key: 'finishSign', align: 'center', width: 120},
  { title: t('other.serialNo'), dataIndex: 'processIndex', key: 'processIndex', align: 'center', width: 120 },
  { title: t('basicData.processNo'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 120 },
  { title: t('basicData.processCodes'), dataIndex: 'processCode', key: 'processCode', align: 'center', width: 120 },
  { title: t('basicData.processNames'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120 },
  {
    title: t('other.doneTime'), dataIndex: 'completeTime', key: 'completeTime', align: 'center', width: 170, timeType: 'time',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  },
  { title: t('basicData.jobNo'), dataIndex: 'staffNo', key: 'staffNo', align: 'center', width: 120 },
  { title: t('hangManage.station'), dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 120 },
]